package com.xzm.service;

import com.xzm.domain.Account;

import java.util.List;

/**
 * @author 3052
 * @create 2020-07-28 16:04
 *
 *      账户的业务层接口
 *
 */
public interface IAccountService {

        /*
        查询所有账户
         */
        List<Account> findAllAccount();
        /*
        *查找用户
        */
        Account findAccountById(Integer accoutId);

        void updateAccount(Account account);

        void saveAccount(Account account);

        void deleteAccount(Integer accountId);

        void transfer(String sourceName,String targetName,Integer money);

}
